
<div id="signin">
<div class="main mt15" >
	<div class="breadCrumb" style="margin-bottom: 15px;">
    <div class="fl"><span class="cRed">当前位置：</span><a href="<?php echo Yii::app()->baseUrl; ?>">首页</a>&nbsp;&rsaquo;&nbsp;<strong>登录</strong></div>
    </div> 
	<div class="loginFrame">
	<div class="bgL fl"></div>
    <div class="bgR fr"></div>
        <div class="loginArea">
        	<div class="loginMsg mt20">
            	<p class="tl fb" style="font-size:14px;">欢迎登录广州心理咨询网！</p>
                <p class="cGre" style="margin-top:5px">慧苑心理咨询，助您成为自己的心理专家！</p>
            </div>
			<?= CHtml::form(); ?>
			<div class="loginMain">
				<table width="100%" cellspacing="0" cellpadding="0" border="0">
					<?php foreach($msgs as $msg) : ?>
					<tr>
						<td></td>
						<td><div class="notice_error"><?php echo $msg; ?></div></td>
					</tr>
					<?php endforeach; ?>
					<?php if(strstr(Yii::app()->user->getReturnUrl(), 'index.php') != 'index.php') : ?>
					<tr>
						<td></td>
						<td><div class="notice_error">您需要登录才能继续操作。</div></td>
					</tr>
					<?php endif ?>
					<tr>
						<td class="Name">用户名：</td>
						<td><?= CHtml::activeTextField($user, 'username', array('size' => '30', 'class' => 'ipt3')); ?></td>
					</tr>
					<tr>
						<td class="Name">密码：</td>
						<td><?= CHtml::activePasswordField($user, 'password', array('size' => '30', 'class' => 'ipt3')); ?></td>
					</tr>
					<tr>
						<td></td>
						<td><input name="" type="submit" value="" class="login_dr" /><input type="checkbox" id="stayLogged" value="1" name="isStayLoggedIn" /> <label for="stayLogged">下次自动登录</label><a href="<?php echo CHtml::normalizeUrl(array('/users/fogotpassword')) ?>" class="cGre aTd" style="padding-left:10px;">忘记密码？	</a>
				<p class="mt20" ><span class="fb">还没有帐号？</span><span><?php echo CHtml::link('立即注册', array('/users/signup'), array('class' => 'cOrg aTd'))?></span></p></td>
					</tr>
				</table>
            </div>
			<?= CHtml::endForm(); ?>
		</div>
	</div>
</div>
</div>